﻿<Window x:Class="AutoLoL.Dialogs.SummonerSpellDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:converters="clr-namespace:AutoLoL.Converters"
        Title="Summoner Spells"
        Height="300"
        Width="375"
        Icon="/Icon.ico"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner" Loaded="Window_Loaded">
    <Window.Resources>
        <converters:ObjectToVisibilityConverter x:Key="ObjectToVisibilityConverter" />
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 0 10 10">
            <Button Name="NoneButton" Content="None" Height="23" Width="75" Margin="0 0 10 0" Click="NoneButton_Click" />
            <Button Name="CancelButton" Content="Close" Height="23" Width="75" Click="CancelButton_Click" />
        </StackPanel>
        <ItemsControl Margin="10" Name="SpellsItemsControl">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel IsItemsHost="True" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Image Cursor="Hand" Width="64" Height="64" Margin="0 0 3 3" ToolTip="{Binding Path=Name}" Source="{Binding Path=IconBitmapImage}" MouseLeftButtonDown="Spell_MouseLeftButtonDown" />
                        <Rectangle Cursor="Hand" Fill="#88FFFFFF" MouseLeftButtonDown="Spell_MouseLeftButtonDown" />
                    </Grid>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </DockPanel>
</Window>
